import debounce from './debounce.js'
import throttle from './throttle'
import draggable from './draggable'
import permission from './permission'
import chartResize from './chartResize.js'
const directives = {
  permission,
  debounce,
  throttle,
  draggable,
  chartResize
}

export default {
  install(app) {
    Object.keys(directives).forEach(key => {
      app.directive(key, directives[key])
    })
  }
}